package com.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.common.constant.MailConstant;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author pumpkin
 * @since 2021-10-25
 */
@Data
@TableName("shares_detail")
public class SharesDetail extends Model<SharesDetail> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 代码
     */
    private String code;
    /**
     * 名字
     */
    private String name;
    /**
     * 所属行业
     */
    private String sshy;
    /**
     * 细分行业
     */
    private String xfhy;
    /**
     * 所属概念
     */
    private String ssgn;
    /**
     * 利空
     */
    private String lk;
    /**
     * 利好
     */
    private String lh;
    /**
     * 市盈率
     */
    private String syl;
    /**
     * 净利润
     */
    private String jlr;
    /**
     * 每股盈利
     */
    private String mgyl;
    /**
     * 市净率
     */
    private String sjl;
    private String zf5;
    private String zf10;
    private String zf20;
    /**
     * 净利润增长
     */
    private String jlrzz;
    /**
     * 每股净资产
     */
    private String mgjzc;
    /**
     * 散户数量
     */
    private String shhl;

    private Integer status;

    private String time;

    private String zzf;
    private String yzf;
    private String zftime;
    private String zkPrice;
    private String ykPrice;
    private String type;
    /**
     * 最近质押的价格和日期
     */
    private String zyprice;

    /**
     * 神奇电波
     * @return
     */
    private String magical;

    @TableField(exist = false)
    private Integer num;

    @TableField(exist = false)
    private String hintType;
    @TableField(exist = false)
    private Integer tsOrder;
    @TableField(exist = false)
    private Integer asorder;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSshy() {
        return sshy;
    }

    public void setSshy(String sshy) {
        this.sshy = sshy;
    }

    public String getXfhy() {
        return xfhy;
    }

    public void setXfhy(String xfhy) {
        this.xfhy = xfhy;
    }

    public String getSsgn() {
        return ssgn;
    }

    public void setSsgn(String ssgn) {
        this.ssgn = ssgn;
    }

    public String getLk() {
        return lk;
    }

    public void setLk(String lk) {
        this.lk = lk;
    }

    public String getLh() {
        return lh;
    }

    public void setLh(String lh) {
        this.lh = lh;
    }

    public String getSyl() {
        return syl;
    }

    public void setSyl(String syl) {
        this.syl = syl;
    }

    public String getJlr() {
        return jlr;
    }

    public void setJlr(String jlr) {
        this.jlr = jlr;
    }

    public String getMgyl() {
        return mgyl;
    }

    public void setMgyl(String mgyl) {
        this.mgyl = mgyl;
    }

    public String getSjl() {
        return sjl;
    }

    public void setSjl(String sjl) {
        this.sjl = sjl;
    }

    public String getZf5() {
        return zf5;
    }

    public void setZf5(String zf5) {
        this.zf5 = zf5;
    }

    public String getZf10() {
        return zf10;
    }

    public void setZf10(String zf10) {
        this.zf10 = zf10;
    }

    public String getZf20() {
        return zf20;
    }

    public void setZf20(String zf20) {
        this.zf20 = zf20;
    }

    public String getJlrzz() {
        return jlrzz;
    }

    public void setJlrzz(String jlrzz) {
        this.jlrzz = jlrzz;
    }

    public String getMgjzc() {
        return mgjzc;
    }

    public void setMgjzc(String mgjzc) {
        this.mgjzc = mgjzc;
    }

    public String getShhl() {
        return shhl;
    }

    public void setShhl(String shhl) {
        this.shhl = shhl;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "" +name+
        ": 所属行业=" + sshy +
                MailConstant.BR+" 细分行业=" + xfhy +
                MailConstant.BR+"所属概念=" + ssgn +
                MailConstant.BR+"利空=" + lk +
                MailConstant.BR+"利好=" + lh +
                MailConstant.BR+"市盈率=" + syl +
                MailConstant.BR+"净利润=" + jlr +
                MailConstant.BR+"每股盈利=" + mgyl +
                MailConstant.BR+"市净率=" + sjl +
                MailConstant.BR+"5日涨幅=" + zf5 +
                MailConstant.BR+"10日涨幅=" + zf10 +
                MailConstant.BR+"20日涨幅=" + zf20 +
                MailConstant.BR+"净利润增长率=" + jlrzz +
                MailConstant.BR+"每股净资产=" + mgjzc +
                MailConstant.BR+"散户数量=" + shhl +
        "";
    }
}
